package org.dromara.system.domain.bo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.dromara.common.core.validate.QueryGroup;
import org.dromara.system.domain.PayAccount;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 收款账号业务对象 pay_account
 *
 * @author Gavino
 * @date 2024-10-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PayAccount.class, reverseConvertGenerate = false)
public class PayAccountBo extends BaseEntity {

    /**
     * 账号ID
     */
    private Long accountId;

    /**
     * 账号名称
     */
    @NotBlank(message = "账号名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String accountName;

    /**
     * 支付平台ID
     */
    @NotNull(message = "支付平台ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long payTypeId;

    /**
     * 域名
     */
    @NotBlank(message = "域名不能为空", groups = {AddGroup.class, EditGroup.class})
    private String domain;

    /**
     * ip
     */
    private String ip;

    /**
     * 插件地址
     */
    private String plugin;

    /**
     * 状态
     */
    private Integer status;

    /**
     * API类型
     */
    private String apiType;

    /**
     * 是否生成订单
     */
    @NotNull(message = "是否生成订单不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer generateOrder;

    /**
     * 是否生成产品
     */
    @NotNull(message = "是否生成产品不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer generateProduct;

    /**
     * 订单状态
     */
    private String orderStatus;

    /**
     * 订单来源
     */
    private String orderSource;

    /**
     * 国家验证类型
     */
    private Integer countryType;

    /**
     * 国家简码
     */
    private String countryCode;

    /**
     * 账号配置
     */
    private String config;

    /**
     * 账号配置项
     */
    private String accountItem;

    /**
     * 备注
     */
    private String remark;

    /**
     * 是否删除
     */
    private Integer isDelete = 0;

    /**
     * 代理ID
     */
    private Long agentId;

    /**
     * 供应商id
     */
    private Long supplierId;

    /**
     * 轮询组支付平台ID
     */
    @NotNull(message = "轮询组ID不能为空", groups = {QueryGroup.class})
    private Long groupTypeId;

    /**
     * 轮询组ID
     */
    @NotNull(message = "轮询组ID不能为空", groups = {QueryGroup.class})
    private Long groupId;


}
